When the host key of a computer you want to ssh to has changed for a valid
reason, ssh will block attempts to connect to it to avoid man-in-the-middle
attacks. Deleting the key from the known_hosts
file with an editor can be
annoying, especially if the files is "hashed". Therefore, ssh-keygen
offers a
feature to do that:
ssh-keygen -R hostname
en shorterhacks ssh
Shorter Hacksconsists of tips and tricks for Linux nerds. Flags, hacks, and features of everyday tools that you might not know already, but that will enrich your life. I currently have a list of around 40 hacks I collected and plan to publish them roughly weekly. In order for this series to continue, please send me your best trick(s). The focus is not on fancy new tools or extensive rc-file content, but little known features in software most people already use. Send them to .